import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/application/special_list/process_list_entity.dart';
import 'package:enterprise_v6_app/app/data/common/choice_bean.dart';


ProcessListEntity $ProcessListEntityFromJson(Map<String, dynamic> json) {
  final ProcessListEntity processListEntity = ProcessListEntity();
  final String? businessCode = jsonConvert.convert<String>(json['businessCode']);
  if (businessCode != null) {
    processListEntity.businessCode = businessCode;
  }
  final String? businessId = jsonConvert.convert<String>(json['businessId']);
  if (businessId != null) {
    processListEntity.businessId = businessId;
  }
  final String? businessType = jsonConvert.convert<String>(json['businessType']);
  if (businessType != null) {
    processListEntity.businessType = businessType;
  }
  final String? certificateTypeId = jsonConvert.convert<String>(json['certificateTypeId']);
  if (certificateTypeId != null) {
    processListEntity.certificateTypeId = certificateTypeId;
  }
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    processListEntity.companyCode = companyCode;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    processListEntity.createBy = createBy;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    processListEntity.createDate = createDate;
  }
  final String? deploymentTime = jsonConvert.convert<String>(json['deploymentTime']);
  if (deploymentTime != null) {
    processListEntity.deploymentTime = deploymentTime;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    processListEntity.id = id;
  }
  final String? processEncoding = jsonConvert.convert<String>(json['processEncoding']);
  if (processEncoding != null) {
    processListEntity.processEncoding = processEncoding;
  }
  final String? remark = jsonConvert.convert<String>(json['remark']);
  if (remark != null) {
    processListEntity.remark = remark;
  }
  final String? templateName = jsonConvert.convert<String>(json['templateName']);
  if (templateName != null) {
    processListEntity.templateName = templateName;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    processListEntity.updateBy = updateBy;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    processListEntity.updateDate = updateDate;
  }
  return processListEntity;
}

Map<String, dynamic> $ProcessListEntityToJson(ProcessListEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['businessCode'] = entity.businessCode;
  data['businessId'] = entity.businessId;
  data['businessType'] = entity.businessType;
  data['certificateTypeId'] = entity.certificateTypeId;
  data['companyCode'] = entity.companyCode;
  data['createBy'] = entity.createBy;
  data['createDate'] = entity.createDate;
  data['deploymentTime'] = entity.deploymentTime;
  data['id'] = entity.id;
  data['processEncoding'] = entity.processEncoding;
  data['remark'] = entity.remark;
  data['templateName'] = entity.templateName;
  data['updateBy'] = entity.updateBy;
  data['updateDate'] = entity.updateDate;
  return data;
}

extension ProcessListEntityExtension on ProcessListEntity {
  ProcessListEntity copyWith({
    String? businessCode,
    String? businessId,
    String? businessType,
    String? certificateTypeId,
    String? companyCode,
    String? createBy,
    String? createDate,
    String? deploymentTime,
    String? id,
    String? processEncoding,
    String? remark,
    String? templateName,
    String? updateBy,
    String? updateDate,
  }) {
    return ProcessListEntity()
      ..businessCode = businessCode ?? this.businessCode
      ..businessId = businessId ?? this.businessId
      ..businessType = businessType ?? this.businessType
      ..certificateTypeId = certificateTypeId ?? this.certificateTypeId
      ..companyCode = companyCode ?? this.companyCode
      ..createBy = createBy ?? this.createBy
      ..createDate = createDate ?? this.createDate
      ..deploymentTime = deploymentTime ?? this.deploymentTime
      ..id = id ?? this.id
      ..processEncoding = processEncoding ?? this.processEncoding
      ..remark = remark ?? this.remark
      ..templateName = templateName ?? this.templateName
      ..updateBy = updateBy ?? this.updateBy
      ..updateDate = updateDate ?? this.updateDate;
  }
}
